/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao06;

/**
 *
 * @author SDKW
 */
public class AcelerarCommand implements Command {
    
    JogoDeCorrida corrida = null;
    
    public AcelerarCommand(JogoDeCorrida corrida) {
        this.corrida = corrida;
    }
    
    @Override
    public void execute() {
        corrida.acelerar();
    }
    
}
